<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
   
    <ui:composition template="/views/_template.xhtml">
    	<ui:define name="corpo">
            <p:tabView>
                <p:tab title="tipo de documento">
                    <fieldset>
                        <legend align="left"><h:outputText value="Dados tipo de documento" /></legend>
                        <h:form>
                            <p:messages id="mensagens" showDetail="true" />
                            <h:dataTable styleClass="dadosForm">
                                <h:column>
                                    <f:facet name="header">
                                       <h:outputLabel style="margin: 5px; text-align: left;" value="Descrição" /> 
                                    </f:facet>
                                    <f:facet name="footer">
                                        <p:inputTextarea style="width: 800px" id="nBanco" value="#{tipoDocumentoBean.tipoDocumento.descricao}" />             
                                    </f:facet> 
                                </h:column>
                            </h:dataTable><br />
                            <h:commandButton value="Gravar" action="#{tipoDocumentoBean.gravar()}" />
                            <h:commandButton value="Limpar" action="#{tipoDocumentoBean.limparFormularioDoJsf()}" />

                        </h:form>
                    </fieldset>
                </p:tab>
            </p:tabView>
        </ui:define>
    </ui:composition>
</html>

